package com.china08.yxyapi.entity.db.continuedu;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 任务-课程
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_continuedu_task_lesson", catalog = "yxy_continuedu", uniqueConstraints = { @UniqueConstraint(columnNames = { "task_id", "lesson_id" }) })
public class YxyContinueduTaskLesson extends BaseEntity {

    @Column(name = "task_id", nullable = false, columnDefinition = "varchar(32) comment '任务id' ")
    private String taskId;// 任务id

    @Column(name = "lesson_id", nullable = false, columnDefinition = "varchar(32) comment '课程id' ")
    private String lessonId;//

    @Column(name = "lesson_name", nullable = false, columnDefinition = "varchar(256) comment '课程名称' ")
    private String lessonName;//

    /** 排列序号 */
    @Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
    private Integer orderNum = 0;

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getLessonId() {
        return lessonId;
    }

    public void setLessonId(String lessonId) {
        this.lessonId = lessonId;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getLessonName() {
        return lessonName;
    }

    public void setLessonName(String lessonName) {
        this.lessonName = lessonName;
    }

}
